@extends('lottery.layout')
@section('title')
    领取奖品登记
@stop
@section('content')
            @if($prize->status ==1)
                <div>
                    <img src="/img/lottery/title.gif" style="width: 100%">
                    <div class="prizeListBox" style="text-align: center">
                        <ul>
                            <li style="font-size: 20px">您的奖品已经领取</li>
                            <li class="resultBtn" style="margin:20px;"><a href="javascript:wx.closeWindow();"><span>确定</span></a></li>
                        </ul>
                    </div>
                </div>
                @else
                <div class="prizeBox">
                    <img src="/img/lottery/title.gif" style="width: 100%">
                    <div class="prizeListBox" style="text-align: center">
                <ul>
                    <li class="prizeShow">
                        @if($prize->prize == 1)
                            <span>一等奖</span>
                        @elseif($prize->prize == 2)
                            <span>二等奖</span>
                        @elseif($prize->prize == 3)
                            <span>三等奖</span>
                        @elseif($prize->prize == 4)
                            <span>四等奖</span>
                        @else
                            <span>五等奖</span>
                        @endif</li>
                    <li style="margin: 10px 0">中奖人昵称：{{$prize->nikeName}}</li>
                    <form action="{{route('lottery.getPrizePost')}}" method="post">
                        <input type="hidden" name="prizeID" value="{{$prize->id}}">
                        <input type="hidden" name="lotteryId" value="{{$lotteryId}}">
                        <input type="hidden" name="_token" value="{{csrf_token()}}">
                        <li class="resultBtn"><button type="submit" style="border: 0;border-bottom: 4px solid #D20000">领奖</button> </li>
                    </form>
                </ul>
                    </div>
                </div>
                @endif


@stop